﻿using Microsoft.AspNetCore.SignalR;

namespace WebAPI;

[Authorize]
public class MsgHub : Hub
{
    public async Task SendMessage(object msg)
    {
        await Clients.All.SendAsync("ReceiveMessage", msg);
    }
}
